<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ include file="/WEB-INF/share/taglib.jsp" %>
<html>
<head>
<title>客户关系管理系统  - 管理员登陆</title>
<link href="${pageContext.request.contextPath }/CSS/style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body style="filter: progid : DXImageTransform.Microsoft.Gradient ( startColorStr = '#4F6D92', endColorStr = '#ACCBE7', gradientType = '0' )">
<script language="javascript">
	function myReload(){
	 	//document.createCheckCode.src="PictureCheckCode";
		document.getElementById("createCheckCode").src=document.getElementById("createCheckCode").src+"?nocache="+new Date().getTime();
	 }
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/validation-framework.js"></script>
<table width="100%" height="451" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center">
			<table width="509" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="142">
						<img src="${pageContext.request.contextPath }/images/login_top.jpg" width="509" height="142">
					</td>
				</tr>
				<div style="margin-top:-30px;dispaly:none;"></div>
				<tr>
					<td height="159" valign="top"
						background="${pageContext.request.contextPath }/images/login_bottom.jpg">
						<table width="350" border="0" cellpadding="0" cellspacing="0">
							<form id="login" name="login" method="post" action="#" onsubmit="return doValidate(this);">
							<tr>
								<td width="84">
									&nbsp;
								</td>
								<td width="57" height="28">用户名：</td>
								<td colspan="2">
									<input id="username" name="username" type="text" size="29">
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td height="28">密&nbsp;&nbsp;码：</td>
								<td colspan="2">
									<input id="password" name="password" type="password" size="29">
								</td>
							</tr>
							<tr>
								<td height="24" align="center">&nbsp;</td>
								<td height="28" align="center">验证码：</td>
								<td width="33" height="24" align="left">
									<input id="checkCode" name="checkCode" title="验证码区分大小写" type="text" size="4"
										maxlength="4">
								</td>
								<td width="176" align="left">
									&nbsp;
									<img src="${pageContext.request.contextPath }/PictureCheckCode" id="createCheckCode"
										style="border: #999999 solid 1px">
									<a href="#" onClick="myReload()">看不清?换一个</a>
								</td>
							</tr>
							<tr>
								<td height="37" colspan="4" align="center">
									<input name="submit" type="submit" class="btn_bg_manageLogin"
										value="登 录">
									&nbsp;
									<input name="reset" type="reset" class="btn_bg_manageLogin"
										value="取 消">
								</td>
							</tr>
							</form>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
  <script language="javascript">
  function check(){
	  alert("testD");
	  if(form1.username.value==""){
	    alert("请输入用户名！");form1.username.focus();return false;
	  }
	  if(form1.password.value==""){
	    alert("请输入密码！");form1.password.focus();return false;
	  }
	  if(form1.checkCode.value==""){
	    alert("请输入验证码！");form1.checkCode.focus();return false;
	  }
  }
function Formfield(name,label){
	this.name=name;
	this.label=label;
}
function checked(objform){
	var list=new Array(new Formfield("username","用户名"),new Formfield("password","密码"),new Formfield("checkCode","验证码"));
	for(var i=0;i<list.length;i++){
		var objfield=eval("objform."+list[i].name);	
		if(objfield.value==""){
			alert(list[i].label+ "不能为空!!!!");
			return false;
		}
	}
}

</script>
</body>
</html>













